<template>
  <div>
    <channel-list
      ref="channelList"
      :row-data="formData.routeData || {}"
      :form-data="formData"
      :show-check-box="false"
      :type="formData.selectedType === 'configed' ? 'configed' : 'restore'"
      operate-type="view"
      class="mb-20"
    />
  </div>
</template>

<script>
  import ChannelList from '@/components/ChannelList'

  export default {
    components: { ChannelList },
    props: {
      formData: {
        required: true,
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {
        progress: 0,
        isOtdrTesting: false
      }
    },
    methods: {
      // otdr测试状态改变
      taskChange(data) {
        this.isOtdrTesting = data
        this.$store.commit('setIsOtdrTesting', data)
      }
    }
  }
</script>
